#pragma once
#include "afxwin.h"


// CModelManage dialog

class CModelManage : public CDialogEx
{
	DECLARE_DYNAMIC(CModelManage)

public:
  CModelManage(CWnd* pParent, CMeasureSolution& solution,
    CMeasureProject& project);   // standard constructor
	virtual ~CModelManage();

// Dialog Data
	enum { IDD = IDD_MODEL_MANAGE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
  afx_msg void OnOk();
  afx_msg void OnCancel();
  virtual BOOL OnInitDialog();
  afx_msg void OnAddModel();
  afx_msg void OnDeleteModel();
  afx_msg void OnModelSwitch();

public:
  tstring AddModel(CWnd *owner) const;
  void DeleteModel(const tstring& modelName);

private:
  CMeasureSolution& solution_;
  CMeasureProject&  project_;
  CListBox wnd_item_list_;
  CListBox wnd_model_list_;
  CEdit wnd_model_path_name_;
  CButton wnd_model_delete_;
};
